package com.dd.duu.vo;

import com.dd.dc.entity.users.DPermission;
import com.dd.dc.entity.users.DRole;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

/**
 * 描述: 页面用户角色视图
 *
 * @author: yanglin
 * @Date: 2021-03-12-13:26
 * @Version: 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AuthorityTreeVo {

    private List<DRole> roleAll = new ArrayList<>();

    private List<DRole> roleHave = new ArrayList<>();

    @Builder
    public AuthorityTreeVo(List<DRole> roleAll, List<DRole> roleHave) {
        this.roleAll = roleAll;
        this.roleHave = roleHave;
    }
}
